# 正常的for...else语句会在循环结束后执行else后的语句
for numbers in range(1,6):
    print(numbers)
    numbers += 1
else:
    print('输出完毕')
print('--'*20)
# 加入contiue对for...else语句的影响
for numbers in range(1,6):
    print(numbers)
    numbers += 1
    if numbers == 2:
        print(f'执行了数字：{numbers}')
else:
    print('输出完毕')
print('--'*20)
# 加入break对for...else语句的影响
for numbers in range(1,6):
    print(numbers)
    if numbers == 2:
        print('中断循环')
        break
    numbers += 1
else:
    print('输出完毕')
